package com.yonyou.brigade.third_parties.didi.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yonyou.brigade.third_parties.didi.dao.DidiInvoiceOrderHistoryMapper;
import com.yonyou.brigade.third_parties.didi.model.DidiInvoiceOrderHistory;
import com.yonyou.brigade.third_parties.didi.service.IDidiInvoiceOrderHistoryService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 滴滴开票订单历史 服务实现类
 * </p>
 *
 * @author kangfw5@yonyou.com
 * @since 2019-07-10
 */
@Service
public class DidiInvoiceOrderHistoryServiceImpl extends ServiceImpl<DidiInvoiceOrderHistoryMapper, DidiInvoiceOrderHistory> implements IDidiInvoiceOrderHistoryService {

    @Override
    public Page<DidiInvoiceOrderHistory> queryInvoiceOrderWithPageByInvoiceId(Page<DidiInvoiceOrderHistory> page, String invoiceId) {
        Wrapper<DidiInvoiceOrderHistory> wrapper = new EntityWrapper<>();
        wrapper.eq(DidiInvoiceOrderHistory.INVOICE_ID, invoiceId);
        return this.selectPage(page, wrapper);
    }
}
